<?php


namespace app\validate;


use think\Validate;

class Document extends Validate
{
    protected $rule=[
        'document'=>'filesize:1024000|fileExt:zip,rar,doc,pdf,docx'
    ];
    protected $message=[
        'document.filesize'=>'文件过大',
        'document.fileExt'=>'文件后缀不允许'
    ];
}